﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin.master" AutoEventWireup="true" CodeFile="admin.aspx.cs" Inherits="admin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style1 {
        }
        .block {
            border-radius:0px 10px 10px 0px;
            box-shadow:2px 1px rgb(235, 221, 221);
            margin:30px 0px;
            padding:10px;
        }
            .block > a {
                display:block;
                border-bottom:1px solid rgb(235, 221, 221);
                text-decoration:none;
                font-size:30px;
            }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="RoomManager" Runat="Server" class="block">
        <a>Quản Lý Phòng</a>
    <table style="width: 100%; height: 204px;">
        <tr>
            <td>Mã loại</td>
            <td>
                <asp:TextBox ID="txt_Maloai" runat="server"></asp:TextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>Tên loại</td>
            <td>
                <asp:TextBox ID="txt_Tenloai" runat="server"></asp:TextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>Giá</td>
            <td>
                <asp:TextBox ID="txt_Gia" runat="server"></asp:TextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>Hình ảnh</td>
            <td>
                <asp:FileUpload ID="FileUpload1" runat="server" />
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>Mô tả</td>
            <td>
                <asp:TextBox ID="txt_MotaPhong" runat="server" Height="56px" TextMode="MultiLine" Width="296px"></asp:TextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>
                <asp:Button ID="btn_Themphong" runat="server" Text="Thêm" OnClick="btn_Themphong_Click" />
                <asp:Button ID="Button2" runat="server" Text="Xóa theo mã loại" OnClick="Button2_Click" />
                <asp:Button ID="Button3" runat="server" Text="Xóa theo tên loại" OnClick="Button3_Click" />
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:GridView ID="gr_Phong" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" Width="100%">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:BoundField DataField="maloai" HeaderText="Mã loại" />
                        <asp:BoundField DataField="tenloai" HeaderText="Tên loại" />
                        <asp:BoundField DataField="gia" HeaderText="Giá" />
                        <asp:BoundField DataField="mota" HeaderText="Mô tả" />
                        <asp:ImageField DataImageUrlField="hinhanh" HeaderText="Hình ảnh">
                            <ControlStyle Height="200px" Width="200px" />
                        </asp:ImageField>
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
            </td>
            <td>
                <br />
                <br />
            </td>
        </tr>
    </table>
        </div>
    <div id="AccManager" Runat="Server" class="block">
        <a>Quản Lý Tài Khoản</a>
        <table style="width:100%;">
            <tr>
                <td class="auto-style1">Mã tài khoản</td>
                <td>
                    <asp:TextBox ID="txt_Matk" runat="server"></asp:TextBox>
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style1">Tên tài khoản</td>
                <td>
                    <asp:TextBox ID="txt_Tentk" runat="server"></asp:TextBox>
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style1">Mật khẩu</td>
                <td>
                    <asp:TextBox ID="txt_Matkhau" runat="server" TextMode="Password"></asp:TextBox>
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style1">&nbsp;</td>
                <td>
                    <asp:Button ID="Button7" runat="server" OnClick="Button7_Click" Text="Tạo" />
                    <asp:Button ID="Button8" runat="server" Text="Xóa theo mã" OnClick="Button8_Click" />
                    <asp:Button ID="Button9" runat="server" Text="Xóa theo tên" OnClick="Button9_Click" />
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style1" colspan="3">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" Width="100%">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <Columns>
                            <asp:BoundField DataField="tentk" HeaderText="Tài khoản" />
                            <asp:BoundField DataField="matkhau" HeaderText="Mật khẩu" />
                        </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                </td>
            </tr>
        </table>

    <br />
    </div>
    <div id="NewsManager" Runat="Server" class="block">
        <a>Quản Lý Tin Tức</a>
    <table style="width: 100%; height: 241px;">
        <tr>
            <td>Mã tin tức</td>
            <td>
                <asp:TextBox ID="txt_Matin" runat="server"></asp:TextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>Tiêu đề</td>
            <td>
                <asp:TextBox ID="txt_Tieude" runat="server"></asp:TextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>Hình ảnh</td>
            <td>
                <asp:FileUpload ID="FileUpload2" runat="server" />
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>Mô tả</td>
            <td>
                <asp:TextBox ID="txt_Motatin" runat="server"></asp:TextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>Nội dung</td>
            <td>
                <asp:TextBox ID="txt_Noidungtin" runat="server" Height="65px" TextMode="MultiLine" Width="253px"></asp:TextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>
                <asp:Button ID="Button4" runat="server" Text="Thêm" OnClick="Button4_Click" />
                <asp:Button ID="Button5" runat="server" Text="Xóa theo mã tin" OnClick="Button5_Click" />
                <asp:Button ID="Button6" runat="server" Text="Xóa theo tiêu đề" OnClick="Button6_Click" />
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" Width="100%">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:BoundField DataField="matintuc" HeaderText="Mã tin" />
                        <asp:BoundField DataField="tieude" HeaderText="Tiêu đề" />
                        <asp:BoundField DataField="mota" HeaderText="Mô tả" />
                        <asp:BoundField DataField="noidung" HeaderText="Nội dung" />
                        <asp:ImageField DataImageUrlField="hinhanh" HeaderText="Hình ảnh">
                        </asp:ImageField>
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
            </td>
        </tr>
    </table>
    </div>
</asp:Content>

